package com.patchmanage.back.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.time.LocalDateTime;
    import com.baomidou.mybatisplus.annotation.TableField;
    import java.io.Serializable;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
* <p>
    * 
    * </p>
*
* @author huizhao
* @since 2021-06-18
*/
    @ApiModel(value="StrategyManage对象", description="")
    public class StrategyManage implements Serializable {

    private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

            @ApiModelProperty(value = "策略名")
    private String strategyName;

            @ApiModelProperty(value = "策略优先级（0 一般 1中等  2高）")
    private Integer priorityLevel;

            @ApiModelProperty(value = "策略类型 （1 一次性 2长期）")
    private Integer type;

            @ApiModelProperty(value = "策略状态(0未开启1开启)")
    private Integer status;

            @ApiModelProperty(value = "补丁组id")
    private Integer patchGroupId;

    private String patchGroupName;

            @ApiModelProperty(value = "资产ids")
    private String patchIds;

            @ApiModelProperty(value = "文件ids")
    private String fileLibraryIds;

            @ApiModelProperty(value = "保存路径")
    private String savePath;

            @ApiModelProperty(value = "发现同名文件(0不覆盖 1覆盖)")
    private Integer isCover;

            @ApiModelProperty(value = "推送完成后动作(0不运行1运行)")
    private Integer isAction;

            @ApiModelProperty(value = "运行后的源文件处理方式(0不处理1处理)")
    private Integer handleMode;

            @ApiModelProperty(value = "执行时间 mode:1 代表每周一次 week:1 代表周一 time:时间 ")
    private String executionTime;

            @ApiModelProperty(value = "风险等级（0低1中2高）")
    private Integer riskLevel;

            @ApiModelProperty(value = "资产接收提示（0关1开）")
    private Integer inventoryReceiveSwitch;

            @ApiModelProperty(value = "资产接收提示")
    private String inventoryReceiveTips;

            @ApiModelProperty(value = "资产分组id")
        @TableField("Inventory_group_id")
    private Integer inventoryGroupId;

            @ApiModelProperty(value = "系统重启设置 0不重启1重启")
    private Integer systemRestartSwitch;

            @ApiModelProperty(value = "回滚模式 0关1开")
    private Integer rollbackSwitch;

            @ApiModelProperty(value = "推送失败处置方式 mode:1 处理 0 不处理 repeat:重复次数 time:间隔时间（分） ")
    private String pushFailed;

            @ApiModelProperty(value = "触发日有效(0关1开)")
    private Integer triggerSwitich;

            @ApiModelProperty(value = "有效时间段")
    private String effectiveTime;

            @ApiModelProperty(value = "执行状态 0未执行 1进行中 2已完成")
    private Integer executionStatus;

            @ApiModelProperty(value = "补丁分发类型  1测试，2正式，3人工，4普通文件")
    private Integer patchDistributeType;

            @ApiModelProperty(value = "建立时间")
    private LocalDateTime createTime;

        public Integer getId() {
        return id;
        }

            public void setId(Integer id) {
        this.id = id;
        }
        public String getStrategyName() {
        return strategyName;
        }

            public void setStrategyName(String strategyName) {
        this.strategyName = strategyName;
        }
        public Integer getPriorityLevel() {
        return priorityLevel;
        }

            public void setPriorityLevel(Integer priorityLevel) {
        this.priorityLevel = priorityLevel;
        }
        public Integer getType() {
        return type;
        }

            public void setType(Integer type) {
        this.type = type;
        }
        public Integer getStatus() {
        return status;
        }

            public void setStatus(Integer status) {
        this.status = status;
        }
        public Integer getPatchGroupId() {
        return patchGroupId;
        }

            public void setPatchGroupId(Integer patchGroupId) {
        this.patchGroupId = patchGroupId;
        }
        public String getPatchGroupName() {
        return patchGroupName;
        }

            public void setPatchGroupName(String patchGroupName) {
        this.patchGroupName = patchGroupName;
        }
        public String getPatchIds() {
        return patchIds;
        }

            public void setPatchIds(String patchIds) {
        this.patchIds = patchIds;
        }
        public String getFileLibraryIds() {
        return fileLibraryIds;
        }

            public void setFileLibraryIds(String fileLibraryIds) {
        this.fileLibraryIds = fileLibraryIds;
        }
        public String getSavePath() {
        return savePath;
        }

            public void setSavePath(String savePath) {
        this.savePath = savePath;
        }
        public Integer getIsCover() {
        return isCover;
        }

            public void setIsCover(Integer isCover) {
        this.isCover = isCover;
        }
        public Integer getIsAction() {
        return isAction;
        }

            public void setIsAction(Integer isAction) {
        this.isAction = isAction;
        }
        public Integer getHandleMode() {
        return handleMode;
        }

            public void setHandleMode(Integer handleMode) {
        this.handleMode = handleMode;
        }
        public String getExecutionTime() {
        return executionTime;
        }

            public void setExecutionTime(String executionTime) {
        this.executionTime = executionTime;
        }
        public Integer getRiskLevel() {
        return riskLevel;
        }

            public void setRiskLevel(Integer riskLevel) {
        this.riskLevel = riskLevel;
        }
        public Integer getInventoryReceiveSwitch() {
        return inventoryReceiveSwitch;
        }

            public void setInventoryReceiveSwitch(Integer inventoryReceiveSwitch) {
        this.inventoryReceiveSwitch = inventoryReceiveSwitch;
        }
        public String getInventoryReceiveTips() {
        return inventoryReceiveTips;
        }

            public void setInventoryReceiveTips(String inventoryReceiveTips) {
        this.inventoryReceiveTips = inventoryReceiveTips;
        }
        public Integer getInventoryGroupId() {
        return inventoryGroupId;
        }

            public void setInventoryGroupId(Integer inventoryGroupId) {
        this.inventoryGroupId = inventoryGroupId;
        }
        public Integer getSystemRestartSwitch() {
        return systemRestartSwitch;
        }

            public void setSystemRestartSwitch(Integer systemRestartSwitch) {
        this.systemRestartSwitch = systemRestartSwitch;
        }
        public Integer getRollbackSwitch() {
        return rollbackSwitch;
        }

            public void setRollbackSwitch(Integer rollbackSwitch) {
        this.rollbackSwitch = rollbackSwitch;
        }
        public String getPushFailed() {
        return pushFailed;
        }

            public void setPushFailed(String pushFailed) {
        this.pushFailed = pushFailed;
        }
        public Integer getTriggerSwitich() {
        return triggerSwitich;
        }

            public void setTriggerSwitich(Integer triggerSwitich) {
        this.triggerSwitich = triggerSwitich;
        }
        public String getEffectiveTime() {
        return effectiveTime;
        }

            public void setEffectiveTime(String effectiveTime) {
        this.effectiveTime = effectiveTime;
        }
        public Integer getExecutionStatus() {
        return executionStatus;
        }

            public void setExecutionStatus(Integer executionStatus) {
        this.executionStatus = executionStatus;
        }
        public Integer getPatchDistributeType() {
        return patchDistributeType;
        }

            public void setPatchDistributeType(Integer patchDistributeType) {
        this.patchDistributeType = patchDistributeType;
        }
        public LocalDateTime getCreateTime() {
        return createTime;
        }

            public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        }

    @Override
    public String toString() {
    return "StrategyManage{" +
            "id=" + id +
            ", strategyName=" + strategyName +
            ", priorityLevel=" + priorityLevel +
            ", type=" + type +
            ", status=" + status +
            ", patchGroupId=" + patchGroupId +
            ", patchGroupName=" + patchGroupName +
            ", patchIds=" + patchIds +
            ", fileLibraryIds=" + fileLibraryIds +
            ", savePath=" + savePath +
            ", isCover=" + isCover +
            ", isAction=" + isAction +
            ", handleMode=" + handleMode +
            ", executionTime=" + executionTime +
            ", riskLevel=" + riskLevel +
            ", inventoryReceiveSwitch=" + inventoryReceiveSwitch +
            ", inventoryReceiveTips=" + inventoryReceiveTips +
            ", inventoryGroupId=" + inventoryGroupId +
            ", systemRestartSwitch=" + systemRestartSwitch +
            ", rollbackSwitch=" + rollbackSwitch +
            ", pushFailed=" + pushFailed +
            ", triggerSwitich=" + triggerSwitich +
            ", effectiveTime=" + effectiveTime +
            ", executionStatus=" + executionStatus +
            ", patchDistributeType=" + patchDistributeType +
            ", createTime=" + createTime +
    "}";
    }
}
